package com.ztgf.commodity.models.dto;

import com.baomidou.mybatisplus.annotations.TableName;
import com.ztgf.common.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * author: chenyu.wang
 * date: 2020-05-26 11:45
 * Description:
 */
@Data
@TableName("commodity_unit")
@ApiModel(value = "商品单位表对象", description = "商品单位表对象")
public class CommodityUnitDTO extends BaseDTO implements Serializable {

    @ApiModelProperty(value = "单位唯一标识")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "是否发布;0未发布、1发布")
    private Integer isPublish;

    @ApiModelProperty(value = "排序;默认倒序")
    private Integer sort;

    @ApiModelProperty(value = "备注")
    private String notes;
}
